#!/bin/bash

#sed -i 's/<<api_server>>/http:\/\/nbstock.top:30035/' /etc/nginx/conf.d/nginx_app.conf
#sed -i 's/<websocket_hostport>/nbstock.top:30034/' /etc/nginx/conf.d/nginx_app.conf

sed -i "s/<api_server>/http:\/\/$API_SERVER/" /etc/nginx/conf.d/nginx_app.conf
sed -i "s/<websocket_hostport>/$WS_SERVER/" /etc/nginx/conf.d/nginx_app.conf

nginx -g "daemon off"\;